package org.streets.workflow.engine.task;

import org.streets.workflow.engine.ITaskInstance;
import org.streets.workflow.engine.WorkflowEngine;
import org.streets.workflow.engine.WorkflowException;


/**
 * 任务实例处理器
 */
public interface ITaskHandler {
    /**
     * 运行任务
     * @param currentSession
     * @param runtimeContext
     * @param processInstance
     * @param taskInstance
     * @throws WorkflowException
     * @throws KernelException
     */
    public void handle(WorkflowEngine engine, ITaskInstance taskInstance) throws WorkflowException;
    
}
